<template>
  <div>
    <h2>Home</h2>
    {{ count }},
    {{ store.count }}
    <!-- <button @click="store.count++">+</button> -->
    <button @click="store.increment()">+</button>
    <hr>
    {{ store.fullName }}
  </div>
</template>

<script setup>
import { computed, ref } from 'vue';
import { useAlertsStore } from '../store.js'
const store = useAlertsStore();

const count = computed(() => store.count)

</script>